package com.chinazyjr.framework.web.accessControl;

import com.alibaba.fastjson.JSON;

public class RequestRateLimitConfig {
	private String strategy;
	private Integer threads;
	private Integer period;
	private Integer length;
	private Integer status;
	private Integer limit;
	private Integer rate;
	
	public Integer getThreads() {
		return threads;
	}
	public void setThreads(Integer threads) {
		this.threads = threads;
	}
	public Integer getLength() {
		return length;
	}
	public void setLength(Integer length) {
		this.length = length;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public String getStrategy() {
		return strategy;
	}
	public void setStrategy(String strategy) {
		this.strategy = strategy;
	}
	public Integer getPeriod() {
		return period;
	}
	public void setPeriod(Integer period) {
		this.period = period;
	}
	public Integer getLimit() {
		return limit;
	}
	public void setLimit(Integer limit) {
		this.limit = limit;
	}
	
	public Integer getRate() {
		return rate;
	}
	public void setRate(Integer rate) {
		this.rate = rate;
	}
	@Override
	public boolean equals(Object obj) {
		return JSON.toJSONString(obj).equals(JSON.toJSONString(this));
	}
	
}
